﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1" />
    <title>留言反馈 - {config.webname}</title>
    <link rel="stylesheet" href="{config.webpath}css/validate.css" />
    <link type="text/css" rel="stylesheet" href="{config.webpath}css/pagination.css" />
    <link rel="stylesheet" href="<%templateskin="mobile"%>/css/style.css" />
    <script type="text/javascript" src="{config.webpath}scripts/jquery/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="{config.webpath}scripts/jquery/jquery.form.min.js"></script>
    <script type="text/javascript" src="{config.webpath}scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="{config.webpath}scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script type="text/javascript" src="<%templateskin="mobile"%>/js/base.js"></script>
    <script src="<%templateskin="mobile"%>/js/jquery.flexslider.js"></script>
    <script src="<%templateskin="mobile"%>/js/effects.js"></script>
    <script src="<%templateskin="mobile"%>/js/jquery.tabify.js"></script>
    <script src="<%templateskin="mobile"%>/js/load.js"></script>
    <script type="text/javascript">
        $(function () {
            //初始化发表评论表单
            AjaxInitForm('feedback_form', 'btnSubmit', 1);
        });
    </script>
</head>
<body id="page">
    <div id="pagecontainer">
        <%template skin="mobile" src=/_header.html/%>
        <div class="content">
            <%template skin="mobile" src=/_headeruser.html/%>
            <div class="pagediv">
                <!-- 内容详细 开始-->
                <h1>
                    留言反馈</h1>
                <!--留言列表-->
                <div class="comment_box">
                    <ol class="comment_list">
                        <%set DataTable plist=new DTcms.Web.Plugin.Feedback.feedback().get_feedback_list(10, page, "", out totalcount)%>
                        <%set string pagelist=get_page_link(10, page, totalcount, "feedback", "__id__")%>
                        <%loop list plist%>
                        <li>
                            <div class="floor">
                                #<%=(list__loop__id+10*(page-1))%></div>
                            <div class="inner" style="margin-left: 0;">
                                <p>
                                    {list[content]}</p>
                                <div class="meta">
                                    <span class="blue">{list[user_name]}</span> <span class="time">{list[add_time]}</span>
                                </div>
                            </div>
                            <%if({list[reply_content]}!="")%>
                            <div class="answer" style="margin-left: 0;">
                                <div class="meta">
                                    <span class="right time">{list[reply_time]}</span> <span class="blue">管理员回复：</span>
                                </div>
                                <p>
                                    {list[reply_content]}</p>
                            </div>
                            <%/if%>
                        </li>
                        <%/loop%>
                    </ol>
                </div>
                <div class="line10">
                </div>
                <div class="flickr">
                    {pagelist}</div>
                <!--放置页码列表-->
                <!--/留言列表-->
                <div class="line10">
                </div>
                <h1>
                    发表留言</h1>
                <div class="line10">
                </div>
                <form id="feedback_form" name="feedback_form" url="{config.webpath}plugins/feedback/ajax.ashx?action=add">
                <div class="form_box">
                    <dl>
                        <dt>用户昵称：</dt>
                        <dd>
                            <input id="txtUserName" name="txtUserName" type="text" class="input txt" datatype="*"
                                sucmsg=" " /></dd>
                    </dl>
                    <dl>
                        <dt>联系电话：</dt>
                        <dd>
                            <input id="txtUserTel" name="txtUserTel" type="text" class="input txt" datatype="*0-20"
                                sucmsg=" " /></dd>
                    </dl>
                    <dl>
                        <dt>在线QQ：</dt>
                        <dd>
                            <input id="txtUserQQ" name="txtUserQQ" type="text" class="input txt" datatype="*0-20"
                                sucmsg=" " /></dd>
                    </dl>
                    <dl>
                        <dt>电子邮箱：</dt>
                        <dd>
                            <input id="txtUserEmail" name="txtUserEmail" type="text" class="input txt" /></dd>
                    </dl>
                    <dl>
                        <dt>留言标题：</dt>
                        <dd>
                            <input id="txtTitle" name="txtTitle" type="text" class="input txt" datatype="*2-100"
                                sucmsg=" " /></dd>
                    </dl>
                    <dl>
                        <dt>留言内容：</dt>
                        <dd>
                            <textarea id="txtContent" name="txtContent" class="input txt" datatype="*" sucmsg=" "
                                style="width: 350px; height: 80px;"></textarea></dd>
                    </dl>
                    <dl>
                        <dt>验证码：</dt>
                        <dd>
                            <input id="txtCode" name="txtCode" type="text" class="input small" datatype="*" sucmsg=" " />
                            <a href="javascript:;" onclick="ToggleCode(this, '{config.webpath}tools/verify_code.ashx');return false;">
                                <img src="{config.webpath}tools/verify_code.ashx" width="80" height="22" align="absmiddle" />
                                看不清楚？</a> <span class="Validform_checktip"></span>
                        </dd>
                    </dl>
                    <dl>
                        <dt></dt>
                        <dd>
                            <input name="btnSubmit" type="submit" value="发表留言" class="btn_submit" />
                        </dd>
                    </dl>
                </div>
                <div class="clear">
                </div>
                </form>
            </div>
            <%template skin="mobile" src=/_footer.html/%>
        </div>
        <%template skin="mobile" src=/_menu.html/%>
    </div>
</body>
</html>
